package com.example.service.impl;

import com.example.dao.ShopDao;
import com.example.entity.Shop;
import com.example.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {

    @Autowired
    private ShopDao shopDao;

    @Override
    public List<Shop> getAll(String searchName) {
        return shopDao.getAll(searchName);
    }

    @Override
    public Shop getShopById(Integer shopId) {
        return shopDao.getShopById(shopId);
    }

    @Override
    public List<Shop> listShopByShopType(String shopType) {
        return shopDao.listShopByShopType(shopType);
    }
}